using System;
using System.Collections.Generic;
using System.Linq;

namespace DynamicGeneration.Modules.WebApiExplorer
{
    public class AttributeInfo
    {
        private const string Suffix = "Attribute";
        public Attribute Attribute { get; set; }
        public string Name { get { return Attribute.GetType().Name; } }
        public string ShortName { get { return Name.EndsWith(Suffix) ? Name.Substring(0, Name.Length - Suffix.Length) : Name; } }

        public AttributeInfo(Attribute attribute)
        {
            // TODO: Complete member initialization
            this.Attribute = attribute;
        }
    }
}
